package cc.ucanuup.config.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;

/**
 * Description: TODO[描述该类概要功能介绍]
 *
 * @author guwenbin
 * @date 2017年11月29日
 * @version 1.0
 */
public class SupplierInfo implements org.springframework.security.core.userdetails.UserDetails{

	/**
	 * Description:[字段功能描述]
	 */
	private static final long serialVersionUID = 1L;

	private String password;

	private String username;

	private boolean  accountNonExpired;

	private boolean  accountNonLocked;

	private boolean  credentialsNonExpired;

	private boolean  enabled;

	private String  realName;

	private String								userId;
	/**
	 * 用户账号
	 */
	private String								usercode;
	/**
	 * ID 地址
	 */
	private String								address;

	private Collection<? extends GrantedAuthority> authorities;


	@Override
	public String getPassword() {

		return password;
	}


	public void setPassword(String password) {

		this.password = password;
	}


	@Override
	public String getUsername() {

		return username;
	}


	public void setUsername(String username) {

		this.username = username;
	}


	@Override
	public boolean isAccountNonExpired() {

		return accountNonExpired;
	}


	public void setAccountNonExpired(boolean accountNonExpired) {

		this.accountNonExpired = accountNonExpired;
	}


	@Override
	public boolean isAccountNonLocked() {

		return accountNonLocked;
	}


	public void setAccountNonLocked(boolean accountNonLocked) {

		this.accountNonLocked = accountNonLocked;
	}


	@Override
	public boolean isCredentialsNonExpired() {

		return credentialsNonExpired;
	}


	public void setCredentialsNonExpired(boolean credentialsNonExpired) {

		this.credentialsNonExpired = credentialsNonExpired;
	}


	@Override
	public boolean isEnabled() {

		return enabled;
	}


	public void setEnabled(boolean enabled) {

		this.enabled = enabled;
	}


	public String getRealName() {

		return realName;
	}


	public void setRealName(String realName) {

		this.realName = realName;
	}


	public String getUserId() {

		return userId;
	}


	public void setUserId(String userId) {

		this.userId = userId;
	}


	public String getUsercode() {

		return usercode;
	}


	public void setUsercode(String usercode) {

		this.usercode = usercode;
	}


	public String getAddress() {

		return address;
	}


	public void setAddress(String address) {

		this.address = address;
	}


	@Override
	public Collection<? extends GrantedAuthority> getAuthorities() {

		return authorities;
	}


	public void setAuthorities(Collection<? extends GrantedAuthority> authorities) {

		this.authorities = authorities;
	}
}
